package com.woniuxy.dal.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName testType
 */
@TableName(value ="testType")
@Data
public class Testtype implements Serializable {
    /**
     * 实验类型Id
     */
    @TableId(value = "testTypeId", type = IdType.AUTO)
    private Integer testTypeId;

    /**
     * 实验类型名称
     */
    @TableField(value = "testTypeName")
    private String testTypeName;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Testtype other = (Testtype) that;
        return (this.getTestTypeId() == null ? other.getTestTypeId() == null : this.getTestTypeId().equals(other.getTestTypeId()))
            && (this.getTestTypeName() == null ? other.getTestTypeName() == null : this.getTestTypeName().equals(other.getTestTypeName()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getTestTypeId() == null) ? 0 : getTestTypeId().hashCode());
        result = prime * result + ((getTestTypeName() == null) ? 0 : getTestTypeName().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", testTypeId=").append(testTypeId);
        sb.append(", testTypeName=").append(testTypeName);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}